export default {
    increment(state, data) {
        if (data) {
            state.login = data;
            state.grogshop.hotelId = data.belong_gs;
            state.grogshop.grogshopName = data.belong_name;
            state.grogshop.appId = data.app_id;
        }
    },
    mianGrogshopID(state, id) {
        state.grogshop.hotelId = id;
    },
    grogshopMessage(state, name, id) {
        state.grogshop.grogshopName = name;
        if (id) {
            state.grogshop.appId = id;
        }
    },
    currentNav(state, nav) {
        state.nav = nav;
    },

    accoutComplie(state, ac) {
        state.accout = ac;
    }
}